
Calendar.LANG("cn", "\u4E2D\u6587", {
        fdow: 1,
        goToday: "\u4ECA\u5929",
        today: "\u4ECA\u5929",
        wk: "\u5468",
        weekend: "0,6",         // 0 = Sunday, 1 = Monday, etc.
        AM: "AM",
        PM: "PM",
        mn : [ "\u4E00\u6708",
               "\u4E8C\u6708",
               "\u4E09\u6708",
               "\u56DB\u6708",
               "\u4E94\u6708",
               "\u516D\u6708",
               "\u4E03\u6708",
               "\u516B\u6708",
               "\u4E5D\u6708",
               "\u5341\u6708",
               "\u5341\u4E00\u6708",
               "\u5341\u4E8C\u6708"],
      smn : [ "\u4E00\u6708",
              "\u4E8C\u6708",
              "\u4E09\u6708",
              "\u56DB\u6708",
              "\u4E94\u6708",
              "\u516D\u6708",
              "\u4E03\u6708",
              "\u516B\u6708",
              "\u4E5D\u6708",
              "\u5341\u6708",
              "\u5341\u4E00\u6708",
              "\u5341\u4E8C\u6708"],
        dn : [ "\u65E5",
               "\u4E00",
               "\u4E8C",
               "\u4E09",
               "\u56DB",
               "\u4E94",
               "\u516D",
               "\u65E5" ],
        sdn : [ "\u65E5",
                "\u4E00",
                "\u4E8C",
                "\u4E09",
                "\u56DB",
                "\u4E94",
                "\u516D",
                "\u65E5" ]
});

 Calendar.setup(
 {
 	inputField : "startime_str", trigger : "startime_str", dateFormat : "%Y-%m-%d", min :new Date(),
    onSelect : function () 
    {  
    	this.hide();
        computDate();
    }
});
function computDate()
{
    $("#endtime").html("");
	if ( $("#startime_hour").val() !="" && Number($("#startime_hour").val())>=24){
		    $("#startime_hour").val("00");
		    alert("\u5F55\u5165\u65F6\u95F4\u4E0D\u6B63\u786E\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165");
         }	
	if ($("#startime_min").val() !="" && Number($("#startime_min").val())>=60){
			$("#startime_min").val("00");
		    alert("\u5F55\u5165\u65F6\u95F4\u4E0D\u6B63\u786E\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165");
         }
    if ($("#startime_str").val() != "\u5F00\u59CB\u65E5\u671F" && $("#startime_hour").val() !="" && $("#startime_min").val() !=""&&$("#active_time").val() >0)
    {	
        var startime = new Date(($("#startime_str").val() + " "+$("#startime_hour").val()+":"+$("#startime_min").val()+":00").replace(/-/g,  "/"));
        startime.setMinutes(startime.getMinutes() + Number($("#active_time").val()), startime.getSeconds(), 0);
		$("#endtime").html(startime.getFullYear()+"-"+("" + (startime.getMonth() + 101)).substr(1)+"-"+ ("" + (startime.getDate() + 100)).substr(1)+" "+("" + (startime.getHours() + 100)).substr(1)+":"+ ("" + (startime.getMinutes() + 100)).substr(1));
    }
}
